<!DOCTYPE HTML><html>
<head>
<? echo $h->meta($title, $kwd, $dpn); ?>
<? require_once("lib.php"); ?>
</head>
<body id="">
<? include_once("header.php"); ?>
<div id="wrap">
	<div class="breadcrumb">
		<a href="./"><?=WEB_INDEX_PAGE?></a> &gt; <a href="faq.html"><?=WEB_FAQ?></a>
	</div><!--breadcrumb end-->
	<div id="" class="w180 left">
		<div class="help_menu">
			<ul class="help_menu_ul">
				<? 
					$str='';
					foreach($arr_cate as $val){
						$str.='<li class="title"><a href="helps-'.$val['id'].'.html">'.$val['name_'.$lang].'</a></li><li class="lace"></li>';
						foreach($val['menu'] as $row){
							$str.='<li class="item"><a href="help-'.$row['id'].'.html">'.$row['name_'.$lang].'</a></li>';
						}
						$str.='<li class="lace"></li>';
					}
						echo $str;
				 ?>
				 <li class="title"><a href="faq.html"><?=WEB_FAQ?></a></li>
				 <?
				 	$str='<li class="lace"></li>';
				 	foreach($arr_faq_cate as $val){
				 		$str.='<li class="item"><a href="faq.html#c'.$val['id'].'">'.$val['name_'.$lang].'</a></li>';
				 	}
				 	$str.='<li class="lace"></li>';
				 	echo $str;
				 ?>
			</ul>
		</div>
	
	</div><!--. w220-->
		<div id="" class="right w760">
			<div class="">
				<div class="h2news">
					<h2><?=$cate_name?></h2>
				</div>
				<ul class="faqmenu right">
					<?
						$str=''; $k=0;
						foreach ($arr_faq_cate as $val) {
							$str.='<li><a class="blue" href="#c'.$val['id'].'">'.$val['name_'.$lang].'</a></li>';
							$k++;
						}
						echo $str;
					?>
				</ul>
				<div class="clear"></div>
				<div class="faqs">
					<?
						$str='';
						foreach ($arr_faq_cate as $val) {
							$str.='<h3 id="c'.$val['id'].'">'.$val['name_'.$lang].'</h3>';
							if(isset($info[$val['id']])){
								$str.='<ul>';
								foreach($info[$val['id']] as $row){
									$str.='<li class="q"><a>'.$row['name_'.$lang].'</a></li>';
									$str.='<li class="a hide">'.$row['content_'.$lang].'</li>';
								}
								$str.='</ul>';
							}
						}
						echo $str;
					?>
				</div>
			</div><!--.-->
	</div><!--# featured_and_ad_right-->
		<div class="clear"></div>
	<div class="px20"></div>
	<div class="clear"></div>
</div>
<? include("footer.php"); ?>
<script type="text/javascript">
  $(document).ready(function(){
  	$(".faqs .q").click(function(){
  		$(this).next('li.a').toggleClass('hide');
  	});
});
</script>
</body>
</html>